package me.xuym.crawler.simpleextension.dispatcher;

import com.cbs.java.component.application.Application;
import me.xuym.crawler.Processor;

import java.io.IOException;
import java.util.List;

/**
 * Created by broche on 05/08/2017.
 */
public class SimpleDebugListDispatcher extends Processor<List<SimpleDebugDispatcherInput>, List<SimpleDebugDispatcherInput>> {
    public SimpleDebugListDispatcher(Application application) throws IOException {
        super(application);
    }

    @Override
    public List<SimpleDebugDispatcherInput> onProcess(List<SimpleDebugDispatcherInput> simpleDebugDispatcherInputs) throws Exception {
        for (SimpleDebugDispatcherInput input : simpleDebugDispatcherInputs) {
            System.out.println(input.simpleDebugDispatcherContent());
        }
        return simpleDebugDispatcherInputs;
    }
}
